Neo4j
Samples Overview
Qarbine provides a wide variety of sample templates, and queries. Some are application oriented examples, while others are database administrator (DBA) oriented.
Below are a few of the component samples to consider. Review the Qarbine Catalog for the latest components. See the latest set of Neo4j components in the folder depicted below.
Distinct Labels
This data source is at “example/Neo4j/DBA/List distinct labels”. It provides a listing of the defined Neo4j labels within the associated Neo4j environment. Below is the query specification.
MATCH (n)
UNWIND labels(n) AS label
RETURN DISTINCT label
Here is some sample output.
Labels and Relationships
This template is at “example/Neo4j/DBA/Labels and relationships listing for prompted Neo4j data service and database”. It provides information on the defined Neo4j labels and relationships within the associated Neo4j environment. Below is a sample snippet from running the template.
Labels and Relationships Details with Diagram
This template is at “example/Neo4j/DBA/List relationship schema with diagram”. It provides information on the defined labels and relationships within the associated Neo4j environment. After that content a diagram is presented as well using the “Nodes and Links” custom cell. The first part of the output is shown in the snippet below.
The middle part of the output with relationship information is shown in the snippet below.
The final part of the output with the diagram is shown below.
General Schema
This general purpose template is at “Qarbine_admin/Cached schemas for prompted data service”. It displays information on all of the cached schemas. These schemas are saved as users interact with the data tools such as the Data Source Designer, Query by Example, and Report by Example. If a particular collection is not shown in the output, simply open up one of these tools and select it from the collection drop down to create it. Then rerun the template.
Running the template prompts for a data service.
Below are sample snippets from running the template.
The items are relations from the node to another one. The items are relationships into the node from another one. For example in the case of Move,
A User RATED a Movie and a Movie is IN_GENRE Genre.
System Users
This template is at “example/Neo4j/DBA/System users”. It provides information on the defined Neo4j users and their roles. Below is a sample snippet from running the template.
System User Privileges
This template is at “example/Neo4j/DBA/System user privileges”. It provides information on the defined Neo4j users and their permissions. Below is a sample snippet from running the template.
Databases
This template is at “example/Neo4j/DBA/Databases”. It provides information on the defined Neo4j databases. Below is a sample snippet from running the template.
Constraints
This template is at “example/Neo4j/DBA/Show constraints for prompted Neo4j data service and database”. It provides information on the defined Neo4j constraints within the associated Neo4j environment. Below is a sample snippet from running the template.
Indexes
This template is at “example/Neo4j/DBA/Show indexes for prompted Neo4j data service and database”. It provides information on the defined Neo4j indexes within the associated Neo4j environment. Below is a sample snippet from running the template.